package com.witdata.common.mapper;

import com.witdata.common.domain.dto.SessionDto;
import com.witdata.mysql.domain.entity.TSession;
import com.witdata.common.domain.req.SessionRequest;
import com.witdata.common.domain.res.SessionResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SessionMapper {

    SessionMapper INSTANCE = Mappers.getMapper(SessionMapper.class);

    TSession toTSessionBySessionDto(SessionDto sessionDto);

    SessionDto toSessionDto(TSession tSession);

    List<SessionDto> toSessionDtoList(List<TSession> tSessionList);

}
